<template>
  <div>
      <el-input v-model="ddd"></el-input>
      <el-input v-model="form.url"></el-input>
      <!--<el-switch v-model="form.url"></el-switch>-->
      <mc-exp ref="mcExp" :data.sync="form.url" attrName="url" :nodeAttr="nodeAttr"></mc-exp>
      <el-button @click="print">打印</el-button>
      <el-button @click="change">变更</el-button>
  </div>
</template>

<script>
import McExp from './components/McExp'
export default {
    data(){
      return {
        ddd:1,
            nodeAttr:{":url":"","url":"ggg"},
            form:{url:""},
		  }
    },
    components:{
      McExp,
    },
    methods:{
        print(){
            console.log(this.nodeAttr)
        },
        saveData(val){
            console.log(val);
        },
        change(){
          this.$refs.mcExp.setExp(false,"a")
        }
    }
}
</script>

<style>

</style>
